package com.hqyj.serviceInf;

import com.github.pagehelper.PageInfo;
import com.hqyj.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserServiceInf {

//    通过用户名查询指定用户或者全查用户
    Map<String, Object> selectUser(int pageNum, int pageSum, String username);
//    通过字符串模糊查询
    Map<String, Object> selectUserLike(int pageNum, int pageSum, String username);

    int insertUser(User user);

    int deleteUser(int id);

    int updateUser(User user);

    int selectIdByUserName(String username);

    Map<String, Object> selectUserByUserName(String username, String password);

}
